<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>外边距（margin）</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            background-color: aqua;
        }
        /* .one{
            margin-bottom: 20px;
        } */
        .two{
            margin-top: 20px;
        }
        .three{
            margin: 30px;
        }
        .four{
            margin: 30px 50px;

        }

    </style>
</head>
<body>
    <div class="one">1</div>
    <div class="two">2</div>
    <div class="three">3</div>
    <div class="four">4</div>
    1.2表现形式一样<br>
    <img src="img/盒子外边距实现方法.png" alt="">
</body>
</html>